<div class="box">
  <div class="box-header">
    
    <ob_link><a class="btn" href="{:url('orderAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
    
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th>单号</th>
          <th>菜品</th>
          <th>桌号</th>
          <th>总价</th>
          <th>创建时间</th>
          <th>状态</th>
      </tr>
      </thead>
      
      {notempty name='list'}
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>{$vo.o_id}</td>
                  <td>{$vo.name}</td>
                  <td>{$vo.table_id}</td>
                  <td>{$vo.copies}</td>
                  <td>{$vo.create_time}</td>
                  {if $vo.status == 4}
                  <td><ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' =>5 ))}">{$vo.status_text}</a></ob_link></td>
                  {else if $vo.status == 5}
                  <td><ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => 4))}">{$vo.status_text}</a></ob_link></td>
                  {/if}
                </tr>
            {/volist}
        </tbody>
        {else/}
        <tbody><tr class="odd"><td colspan="7" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
      {/notempty}
    </table>
  </div>

  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>

</div>